<template>
	<a-input-search
		class="app-quick-search"
		v-model:value="value"
		:placeholder="placeholder"
		@search="handleSearch"
	>
	</a-input-search>
</template>
<script setup lang="ts">
import { QuickSearchProps } from './quick-search';
//  输入参数
const props = defineProps(QuickSearchProps);

const emit = defineEmits<{
	(name: 'search', searchValue: string): void;
}>();

const value = ref<string>('');

const handleSearch = (searchValue: string) => {
	emit('search', searchValue);
};
</script>
